<template>
  <router-view />
</template>

<script>
import pc from '@/views/pc'
// mobile 组件这里不需要引入，因为你是通过 router-view 加载的
export default {
  components: { pc },
  data() {
    return {
      isMobile: false,
      url: ""
    }
  },
  mounted() {
    const isMobileUserAgent = /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
    this.isMobile = isMobileUserAgent.test(navigator.userAgent)

    document.title=""
    const link = document.querySelector("link[rel*='icon']");
    link.rel = "icon";
  }
}
</script>

<style scoped lang="scss">

</style>
